function useState<T>(state: T) {
  let currentState = state;

  const changeState = (newState: T) => {
    currentState = newState;
  };

  const tuple: [T, (newState: T) => void] = [currentState, changeState];
  return tuple;
}

const [counter, setCounter] = useState(10);

console.log(counter);
setCounter(1000);
console.log(counter);

const [title, setTitle] = useState("abc");

const [flag, setFlag] = useState("abc");


export {};
